package com.itheima.comsys.demo;

public class Participant {
    private String name;
    private String competitionName;

    public Participant() {
    }

    public Participant(String name, String competitionName) {
        this.name = name;
        this.competitionName = competitionName;
    }

    // getter和setter方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCompetitionName() {
        return competitionName;
    }

    public void setCompetitionName(String competitionName) {
        this.competitionName = competitionName;
    }
}
